const userLoginReducer = (prevState ={}, action) => {
  let { type, payload } = action;
  switch (type) {
    case "userLogin":
      // var newstate = [...prevState,...payload]
      // newstate.userinfo = payload
      return payload
    default:
      return prevState
  }
}

export default userLoginReducer